package org.jeecg.modules.relation.relbuildingclassroom.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.relation.relbuildingclassroom.entity.RelBuildingClassroom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.relation.relbuildingclassroom.vo.RelBuildingClassroomVo;

/**
 * @Description: rel_building_classroom
 * @author: baochangrong
 * @Date:   2022-02-11
 * @Version: V1.0
 */
public interface RelBuildingClassroomMapper extends BaseMapper<RelBuildingClassroom> {
    /**
     * 以建筑id为参数查询
     */
    List<RelBuildingClassroomVo>  listAll(String buildingId);
    /** 通过教室id 删除场地（建筑）-教室关系表中记录
     * removeByClassroomId
     */
    boolean removeByClassroomId(String classroomId);

    List<RelBuildingClassroomVo> selectClassroomByBuildingId(String buildingId);


}
